<?php
        namespace Admin\Model;
        use Think\Model;
        class NodeModel extends Model{
          
            //自动验证
            protected $_validate = array(
                array('name','require','节点名不能为空',0,'regex',3),
                array('mrname','require','模块名不能为空',0,'regex',3),
                array('aname','require','方法名不能为空',0,'regex',3),
                );
        }